﻿using Orchard.Tags.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;

namespace NineSeas.Api
{
    [System.Web.Http.Authorize]
    public class TagsController : ApiController
    {
        private readonly ITagService _tagService;
        public TagsController(ITagService tagService)
        {
            _tagService = tagService;
        }
        //
        // GET: /Tags/
        //public IEnumerable<TagSummaryViewModel> Get()
        //{
        //}

        public IEnumerable<string> GetNames()
        {
            return _tagService.GetTags().Select(t => t.TagName);
        }

    }
}
